package com.sh.shanhuo.database.web;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Index;
import androidx.room.PrimaryKey;

@Entity(tableName = "web_info", indices = {@Index("webId")})
public class WebInfoEntity {

    @PrimaryKey(autoGenerate = true)
    public long _id;

    @ColumnInfo(name = "webId")
    public String webId = "";

    @NonNull
    @ColumnInfo(name = "sortName")
    public String sortName = "默认";

    @ColumnInfo(name = "webName")
    public String webName = "";

    @ColumnInfo(name = "webLink")
    public String webLink = "";

    @ColumnInfo(name = "description")
    public String description = "";

    @ColumnInfo(name = "icon")
    public String icon = "";

    @ColumnInfo(name = "onTop")
    public int onTop = 0;

    @ColumnInfo(name = "serverTop")
    public int serverTop = 0;

    @ColumnInfo(name = "isInServer")
    public int isInServer = 0;

    @ColumnInfo(name = "permanent")
    public int permanent = 0;

    @ColumnInfo(name = "fromBox")
    public int fromBox = 0;

    @ColumnInfo(name = "lineMode")//0:在线添加 1:离线添加
    public int lineMode = 0;

    @ColumnInfo(name = "deleteFlag")//0:没删除 1:标记删除
    public int deleteFlag = 0;

    @ColumnInfo(name = "updateTime")
    public long updateTime = System.currentTimeMillis();
}
